﻿@model DataMongo.Entities.SexualOrientation
@{
    ViewBag.Title = "AddSO";
}

<div class="alert alert-info alert-dismissable">
    Add SO (+)
</div>

<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-6">

            @using (Html.BeginForm("AddSO", "PersonalDetails", FormMethod.Post, new { enctype = "multipart/form-data" ,id="orientationform"}))
            {


                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)

                <div class="form-group">
                    <label>Title</label>
                    @Html.TextBoxFor(m => m.Title, new { @class = "form-control" })

                </div>

               

                <button type="submit" class="btn btn-default sexulaoritentaionbutton" >Save</button>
                @Html.ActionLink("Back To List", "SexualOrientation", "PersonalDetails", "", new { @class = "btn btn-info" })

            }

        </div>

    </div><!-- /.row -->

</div>

@*<script>
    $(".sexulaoritentaionbutton").live("click", function () {
        var form=$("#orientationform");
        $.ajax({
            url: form.attr("action"),
            type: 'POST',
            data: form.serialize(),
            success: function (data) {
                alert(data);
            }

        });
    });
</script>*@